import { SchemaFactory, Schema, Prop } from '@nestjs/mongoose';
import { Document } from 'mongoose';
@Schema()
export class Message extends Document {
  @Prop()
  room_id: string;

  @Prop()
  name: string;

  @Prop()
  content: string;

  @Prop()
  send_date: string;
}
export const MessageSchema = SchemaFactory.createForClass(Message);
